package com.itheima.travel.controller;

import com.itheima.travel.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseStatus;

@SuppressWarnings("ALL")
/**
 * @Description :
 * @author     :LD
 */
@Controller
public class DemoController {
    @Autowired
    private UserService userService;

    @ResponseStatus(HttpStatus.OK)
    @RequestMapping("demo")
    public void demo(){
        System.out.println(userService.findAllUser());
    }
}
